(function () {
    $.ajax({
        url: 'http://localhost:8888/api/links',
        success: function (res) {
            console.log(res);
            var huoban = template('huoban',res);
            $('#huobann').html(huoban);
        }
    })
})()